package com.example.dllo.keepdemo.base;

import android.app.Application;
import android.content.Context;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by dllo on 16/1/18.
 */
public class BaseApplication extends Application {
    private static Context context;
    private static String name,url;

    public static String getName() {
        return name;
    }

    public static void setName(String name) {
        BaseApplication.name = name;
    }

    public static String getUrl() {
        return url;
    }

    public static void setUrl(String url) {
        BaseApplication.url = url;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();

        JPushInterface.init(this);
        JPushInterface.setDebugMode(true);
    }

    public static Context getContext() {
        return context;
    }
}
